delegateTo
readonly delegateTo!:(
delegator: CanBeStakeCreds,
poolId: CanBePoolKeyHash,
redeemer?: CanBeData,
script_or_ref?: Script | CanResolveToUTxO
) => TxBuilderRunner
delegator
:CanBeStakeCreds
poolId
:CanBePoolKeyHash
redeemer
:CanBeData
|undefined
,script_or_ref
:Script
|CanResolveToUTxO
|undefined
adds a delegation certificate,
redeemer
and script_or_ref
must be specified together;
they are required if delegator
is a script.
if script_or_ref
is CanResolveToUTxO
it will be used as reference script;
if script_or_ref
is Script
it will be used as script witness;
returns a reference to the same TxBuilderRunner
.